package com.wyp.didishige.utils;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class IntentUtil {
	public static void start_activity(Activity activity,Class<?> cls)
	{
		Intent intent=new Intent();
		intent.setClass(activity,cls);

		activity.startActivity(intent);
	}
	
	public static void start_activity(Activity activity,Class<?> cls,Bundle bundle)
	{
		Intent intent=new Intent();
		intent.setClass(activity,cls);
		intent.putExtras(bundle);
		activity.startActivity(intent);
	}
	
	public static void start_activity_for_result(Activity activity,Class<?> cls,int requestCode,Bundle bundle){
		Intent intent=new Intent();
		intent.setClass(activity,cls);
		intent.putExtras(bundle);
		activity.startActivityForResult(intent, requestCode);
	}

    public static void start_activity_for_result(Activity activity,Class<?> cls,int requestCode){
        Intent intent=new Intent();
        intent.setClass(activity,cls);
        activity.startActivityForResult(intent, requestCode);
    }
}
